<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/common.jspf" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>test</title>

</head>
<script type="text/javascript">
    var oldWin = parent.$("iframe[title='角色管理']").get(0).contentWindow;//返回ifram页面文档（window)
    var row =oldWin.$('#dg').datagrid("getSelected");
    $(function(){
        $('#ff').form('load',{
            roleId:row.roleId,
            roleName:row.roleName,
            roleCreatetime:row.roleCreatetime,
            roleStatus:row.roleStatus
        });
        $('#num').attr('readonly',true);

        $('#starttime').datetimebox({
                value: '3/4/2010 2:3',
                required: true,
                showSeconds: false
        });
    });
    function getCloseModuleWin(){
        parent.$('#win').window('close');
        oldWin.$('#dg').datagrid("reload");
    }
</script>
<body>
<form id="ff" action="${proPath}/role/roleupdate.action" method="post">
    <div>
        <label >角色编号:</label>
        <input class="easyui-validatebox" type="text" id="num" name="roleId" />
    </div>
    <div>
        <label >角色名称:</label>
        <select class="easyui-combobox" name="roleName" />
        <c:forEach items="${applicationScope.sysParamMap.dc_role}" var="sp">
            <option value="${sp.key}">${sp.value}</option>
        </c:forEach>
        </select>
    </div>
    <div>
        <label  >创建时间:</label>
        <input id="starttime" class="easyui-validatebox" type="text" name="roleCreatetime" />
    </div>
    <div>
        <label  >角色状态:</label>
        <select class="easyui-combobox" name="roleStatus" />
            <c:forEach items="${applicationScope.sysParamMap.role_status}" var="sp">
                <option value="${sp.key}">${sp.value}</option>
            </c:forEach>
        </select>
    </div>
    <input type="submit" value="确认修改" onclick="getCloseModuleWin()">
</form>
</body>
</html>